package com.woniuxy.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 答案表(AnswerTable)实体类
 *
 * @author makejava
 * @since 2022-05-31 19:10:50
 */
public class AnswerTable implements Serializable {
    private static final long serialVersionUID = -79037159786601204L;
    /**
     * 答案表的id
     */
    private Integer answerId;
    /**
     * 答案内容
     */
    private String answerContent;
    /**
     * 是否正确(0正确，1错误)
     */
    private Integer answerStatus;
    /**
     * 题目外键的id
     */
    private Integer topicId;
    private List<TopicTable> topicTables;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 更新人
     */
    private String updateUser;
    /**
     * 更新时间
     */
    private String updateTime;

    public AnswerTable() {
    }

    public AnswerTable(Integer answerId, String answerContent, Integer answerStatus, Integer topicId, List<TopicTable> topicTables, String createUser, String createTime, String updateUser, String updateTime) {
        this.answerId = answerId;
        this.answerContent = answerContent;
        this.answerStatus = answerStatus;
        this.topicId = topicId;
        this.topicTables = topicTables;
        this.createUser = createUser;
        this.createTime = createTime;
        this.updateUser = updateUser;
        this.updateTime = updateTime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Integer answerId) {
        this.answerId = answerId;
    }

    public String getAnswerContent() {
        return answerContent;
    }

    public void setAnswerContent(String answerContent) {
        this.answerContent = answerContent;
    }

    public Integer getAnswerStatus() {
        return answerStatus;
    }

    public void setAnswerStatus(Integer answerStatus) {
        this.answerStatus = answerStatus;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    public List<TopicTable> getTopicTables() {
        return topicTables;
    }

    public void setTopicTables(List<TopicTable> topicTables) {
        this.topicTables = topicTables;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "AnswerTable{" +
                "answerId=" + answerId +
                ", answerContent='" + answerContent + '\'' +
                ", answerStatus=" + answerStatus +
                ", topicId=" + topicId +
                ", topicTables=" + topicTables +
                ", createUser='" + createUser + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}

